package cn.wolfcode.trip.base.util;

import cn.wolfcode.trip.base.domain.User;
import lombok.Getter;
import lombok.Setter;

/**
 * 返回的json类型的字符串
 */
@Setter
@Getter
public class JSONResult {
    private boolean success = true;
    private String msg;
    //存储,user对象.用户在html页面之间的数据共享
    private Object data;
    //调用该方法表示操作失败
    public void mark(String msg){
       this.success = false;
       this.msg = msg;
    }
}
